<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<div class="modal-dialog">
	<div class="modal-content">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal"
				aria-hidden="true">X</button>
			<h3 id="myModalLabel">${empty entity?'新增':'修改' }活动列表信息</h3>
		</div>
		<div class="modal-body">
			<form class="form-horizontal" method="post" id="sysUserForm"
				name="lotterystatisticsForm"
				action="lotterystatistics/save${empty entity?'Insert':'Update' }.htm"
				role="form">
				<div class="form-group">
					<label class="col-sm-2 control-label">信用卡名称<font
						color="red">&nbsp;*</font></label>
					<div class="col-sm-10">
						<input type="hidden" value="${entity.lotteryId }"
							name="lotteryId" /> <input type="text" class="form-control"
							id="lotterystatistics_name" name="name" value="${entity.name }">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">可参与抽奖次数<font
						color="red">&nbsp;*</font></label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="count"
							id="lotterystatistics_count" value="${entity.count }">
					</div>
				</div>
			
				<div class="form-group">
					<label class="col-sm-2 control-label">成功邀请好友次数<font color="red">&nbsp;*</font></label>
					<div class="col-sm-10">
						<input type="number" step="1" class="form-control"
							name="successCount" id="lotterystatistics_successCount"
							value="${entity.successCount }">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">成功贷款次数</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="successLoad"
							id="lotterystatistics_successLoad" value="${entity.successLoad }">
					</div>
				</div>
				<span id="tip"
					style="color: red; font-size: 14px; margin-left: 20px;"></span>
			</form>
		</div>
		<div class="modal-footer">
			<button class="btn btn-default" data-dismiss="modal"
				aria-hidden="true">取消</button>
			<button class="btn btn-primary" data-dismiss="modal">保存</button>
		</div>
	</div>
</div>
<script type="text/javascript"
	src="resources/js/My97DatePicker/WdatePicker.js" charset="utf-8"></script>
<script type="text/javascript">
	function check_fun() {
		$("#tip").html("");
		var b = true;
		var successLoad = $('input[name="successLoad"]:checked').val();
		var successCount = $('input[name="successCount"]:checked').val();
		var count = $("#lotterystatistics_count").val();
		var name = $("#lotterystatistics_name").val();
		
		if (successLoad == undefined) {
			$("#tip").html("成功贷款次数");
			b = false;
		}
		if (successCount == undefined) {
			$("#tip").html("成功邀请好友次数");
			b = false;
		}
		if (count == null || url.trim() == '') {
			$("#tip").html("可参与抽奖次数");
			b = false;
		}
		if (name == null || name.trim() == '') {
			$("#tip").html("请输入名称");
			b = false;
		}
		return b;
	}
</script>